import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
  //称之为一个routeConfig
  // routeConfig route routes router
  {
    path: "/",
    name: "Home",
    component: Home,
    title: "主页",
  },

  {
    path: "/about",
    name: "About",

    component: () => import("@/views/About.vue"),
    title: "随便看看",
  },
  {
    path: "/anyOne",
    name: "AnyOne",

    component: () => import("@/views/AnyOne.vue"),
    title: "任意",
  },
  {
    path: "/someOne",
    name: "SomeOne",

    component: () => import("@/views/SomeOne"),
    title: "一些",
  },
  {
    path: "/monday",
    name: "Monday",

    component: () => import("@/views/Monday"),
    title: "星期一",
  },
  {
    path: "/friday",
    name: "Friday",

    component: () => import("@/views/Friday"),
    title: "星期五",
  },
  {
    path: "/august",
    name: "August",

    component: () => import("@/views/August"),
    title: "八月",
  },
  {
    path: "/september",
    name: "September",

    component: () => import("@/views/September"),
    title: "九月",
  },
  {
    path: "/october",
    name: "October",

    component: () => import("@/views/October"),
    title: "十月",
  },
  {
    path: "/fatherSon",
    name: "FatherSon",

    component: () => import("@/views/FatherSon"),
    title: "父子通信",
  },
  {
    path: "/tuesday",
    name: "Tuesday",

    component: () => import("@/views/Tuesday"),
    title: "星期二",
  },
  {
    path: "/saturday",
    name: "Saturday",

    component: () => import("@/views/Tuesday"),
    title: "星期日",
  },
];
export { routes };
const router = new VueRouter({
  routes,
});

export default router;
